﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Gant
{
    class GText
    {
        private string _text;
        private Font font;
        PointF p;
        Brush br;
        public GText(string str,float X,float Y)
        {
            _text = str;
            font = new Font("Verdana", 12);
            p = new PointF(X, Y);
            br = new SolidBrush(Color.FromArgb(250, 200, 0));
        }

        public void drawObj(Graphics g)
        {
            g.DrawString(string,font,br,p);
        }
    }
}
